#include "textcontext.h"
#include "chinesestrategy.h"
#include "languagestrategy.h"

TextContext::TextContext():
        _language(new ChineseStrategy)
{
    _language->setContext(this);
}

TextContext::~TextContext(){
    delete _language;
}

void TextContext::setLanguage(LanguageStrategy * language){
    _language = language;
    _language->setContext(this);
}
